getAutofillId

Gets the unique, logical identifier of this view in the activity, for autofill purposes.

The autofill id is created on demand, unless it is explicitly set by setAutofillId.

See setAutofillId for more info. Compatibility behavior:

  • SDK 26 and above, this method matches platform behavior.
  • SDK 25 and below, this method always return null.

Return

The View's autofill id.

Parameters

v

The View against which to invoke the method.